<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
	<?php use_helper('Javascript')?>
  </head>
  <body>
    <div id="wrapper">
		<div id="header">
			<h1>PHP My Movies</h1>
			<h2>Manage your own movies catalog</h2>
		</div>
		<div id="menu">
			<ul>
				<li><?php echo link_to('Movies', 'view/index') ?></li>
				<li><a href="#">Products</a></li>
				<li><a href="#">Services</a></li>
				<li><a href="#">About Us</a></li>
				<li><a href="#">Contact Us</a></li>
			</ul>
		</div>
		<div id="content">
			<div id="right">
				<div class="post">
					<?php echo $sf_content ?>
				</div>
				<div class="post">
					<h2>Listado de peliculas</h2>
					<div id="list"></div>
					<?php echo javascript_tag(
						remote_function(array(
						'update'  => 'list',
						'url'     => 'movie/index',
						))
					) ?>					
				</div>
			</div>
			<div id="left">
				<h2>Recent Adds</h2>
				<div id="updates">
					<strong>Aqu&iacute; ir&aacute;n las pel&iacute;culas m&aacute;s recientes</strong>
					<div id="recent"></div>
					<?php echo javascript_tag(
							remote_function(array(
							'update'  => 'recent',
							'url'     => 'view/recent',
							))
						) ?>
				</div>
			</div>
		</div>
		<div id="footer">
			<p class="copyright">Copyright &copy; 2006 Sitename.com. Template Designed by <a href="http://www.thewebhub.com/">TheWebHub.com</a>&nbsp;&nbsp;&nbsp;Free Icons by <a href="http://famfamfam.com/">FAMFAMFAM</a></p>
			<p class="links"><a href="http://validator.w3.org/check/referer" class="xhtml">Valid XHTML</a>&nbsp;&nbsp;&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" class="css">Valid CSS</a> </p>
		</div>
    </div>
  </body>
</html>
